
fn = "../readme.md"
# 没有做异常处理
# f = open(fn,"r")
# content = f.read()
# print(content)

# try except
# try:
# 	f = open(fn, "r", encoding="utf-8")
# 	content = f.read()
# 	print(content)
# except Exception as e:
# 	print("ex:", e)
# finally:
# 	if f:
# 		f.close()
# 		print("close f")

size = 1024
content = ""
with open(fn, "r", encoding = "utf-8") as f:
	# print(f.read())
	# for line in f.readlines():
	# 	print(line.strip())
	# content= f.read(size)
	# print("***1***\n")
	# print(content)

	# content= f.read(size)
	# print("***2***\n")
	# print(content)

	# content= f.read(size)
	# print("***3***\n")
	# print(content == "")
	content = f.read(size)
	while( content != ""):
		print(content)
		content = f.read()

